import request from '@/utils/request'

export default {
  // 获取红人管理列表
  queryInfluencerList: data => request({
    method: 'GET',
    url: '/dashboard/influencer/list',
    params: data
  }),
  // 获取红人管理详情
  queryInfluencerShow: data => request({
    method: 'GET',
    url: '/dashboard/influencer/show',
    params: data
  }),
  // 红人管理更新接口
  updateInfluencer: data => request({
    method: 'PUT',
    url: '/dashboard/influencer/update',
    data
  }),
  // 红人管理删除接口
  deleteInfluencer: data => request({
    method: 'DELETE',
    url: '/dashboard/influencer/delete',
    data
  }),
}